package cn.edu.lingnan.tools;


public class ResultVoUtils {

    public static ResultVo success(String status){
        return new ResultVo(ResultVo.SUCCESSCODE,"执行成功",status);
    }

    public static ResultVo success(String message,String Status){
        return new ResultVo(ResultVo.SUCCESSCODE,message,Status);
    }

    public static ResultVo success(String message,Object datas){
        return new ResultVo(ResultVo.SUCCESSCODE,message,datas);
    }

    public static ResultVo success(String message,Object datas,String status,long count){
        return new ResultVo(ResultVo.SUCCESSCODE,message,datas,status,count);
    }

    public static ResultVo error(String message,String status){
        return new ResultVo(ResultVo.ERRORCODE,message,status);

    }


}
